﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
	CodeBehind="CustomerInfo.aspx.cs" Inherits="ZhongTian.Web.CustomerInfo" %>

<%@ Register Assembly="Deeper.Controls" Namespace="Deeper.Controls" TagPrefix="Deeper" %>
<%@ Import Namespace="Deeper.Common" %>
<%@ Import Namespace="Deeper.Common.Web" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="subnav">
		<h2 class="title-1 line-x f14 fb  green lh28">
			客户名称管理</h2>
	</div>
	<Deeper:CrudForm runat="server" ID="pnlDetail" Title="货品类别" OnSaveEvent="ModelSave"
		OnAddItem="ModelAdd">
		<asp:HiddenField runat="server" ID="hfCustomerId" />
		<table width="100%" class="table_form  contentWrap">
			<tr>
				<td align="right" class="w_200">
					客户名称 :
				</td>
				<td>
					<asp:TextBox runat="server" ID="txtCustName" CssClass="input-text  validate[required]"></asp:TextBox>
					<span class="red">*</span>
				</td>
			</tr>
			<tr>
				<td align="right" class="w_200">
					联系方式 :
				</td>
				<td>
					<asp:TextBox runat="server" ID="txtLinkInfo" CssClass="input-text   "></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td align="right" class="w_200">
					备注 :
				</td>
				<td>
					<asp:TextBox runat="server" ID="txtMemo" CssClass="input-text" TextMode="MultiLine"
						Rows="6"></asp:TextBox>
				</td>
			</tr>
		</table>
	</Deeper:CrudForm>
	<asp:TextBox runat="server" ID="txtKeyWord" CssClass="input-text"></asp:TextBox><asp:Button
		runat="server" ID="btnSearch" Text="搜索" CssClass=" button icon_search" OnClick="btnSearch_Click" />
	<div>
		<Deeper:PagedReapter ID="rptList" runat="server" OnItemCommand="rptList_Command"
			OnBindData="MyDataBind">
			<HeaderTemplate>
				<table class="table-list">
					<thead>
						<tr>
							<th>
								序号
							</th>
							<th>
								客户名称
							</th>
							<th>
								联系方式
							</th>
							<th>
								备注
							</th>
							<th>
								应付账款
							</th>
							<th>
								最后付款时间
							</th>
							<th>
								操作
							</th>
						</tr>
					</thead>
					<tbody>
			</HeaderTemplate>
			<FooterTemplate>
				</tbody> </table>
			</FooterTemplate>
			<ItemTemplate>
				<tr>
					<td>
						<%# (rptList.PageIndex - 1) * rptList.PageSize + Container.ItemIndex + 1%>
					</td>
					<td>
						<%# Eval("CustName") %>
					</td>
					<td>
						<%# Eval("LinkInfo") %>
					</td>
					<td>
						<%# Eval("Memo") %>
					</td>
					<td>
						<%# Eval("NeedPay") %>
					</td>
					<td>
						<%# Eval("LastPayTime") %>
					</td>
					<td>
						<asp:Button runat="server" ID="btnDelete" Text="删除" CssClass="btnDelete button icon_delete"
							CommandName="delete" CommandArgument='<%# Eval("CustomerId") %>' />
						<asp:Button runat="server" ID="btnEdit" Text="编辑" CssClass="button icon_edit" CommandName="edit"
							CommandArgument='<%# Eval("CustomerId") %>' />
					</td>
				</tr>
			</ItemTemplate>
		</Deeper:PagedReapter>
	</div>
</asp:Content>
